package com.lx.gulimall.product.feign;

import com.lx.common.utils.R;
import com.lx.gulimall.product.feign.fallback.SecKillServiceFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lixun Email:lx3027@126.com
 * @create 2021-08-21 17:17
 */
@FeignClient(value = "gulimall-seckill", fallback = SecKillServiceFeignFallback.class)
public interface SeckillFeignService {

    @GetMapping("/sku/seckill/{skuId}")
    R getSkuSeckillInfo(@PathVariable("skuId") Long skuId);

}
